package com.itheima.d07_singleton;

public  class TaskManager {
    //1.构造方法私有化
    private TaskManager() {
    }
    //2.提供一个静态方法
    //在类中创建对象
    public static TaskManager TaskManager =new TaskManager();
    //3.提供静态方法，返回TaskManager对象
    public static TaskManager getInstance(){
        return TaskManager;
    }
}
